home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d20 / fddev202.arc / C.ARC / TERMINAL.H < prev    next >
Text File  |  1991-10-01  |  4KB  |  90 lines

  1. /*
  2. **  terminal.h (FrontDoor Terminal)
  3. **
  4. **  Copyright 1991 Joaquim H. Homrighausen. All rights reserved.
  5. **
  6. **  TERMPHON.FD, TERMPROF.FD, and TERMKEYS.FD format for FrontDoor 2.01+
  7. **
  8. **  Last revised:   91-10-02
  9. **
  10. **  -------------------------------------------------------------------------
  11. **  This information is not necessarily final and is subject to change at any
  12. **  given time without further notice
  13. **  -------------------------------------------------------------------------
  14. */
  15.  
  16.     /* Phone entry record descriptor -------------------------------------- */
  17.     /* TERMPHON.FD */
  18.  
  19.     /* Note that the char[] fields are in Pascal fashion. The first byte is
  20.     the length byte. The actual string starts at [1] and the string is NOT
  21.     NUL terminated. In Pascal they would be string[30] and string[34].*/
  22.  
  23.     typedef struct
  24.         {
  25.         char            name[31];                              /*System name*/
  26.         char            number[35];             /*Telephone number as dialed*/
  27.         unsigned int    baud;                                    /*Baud rate*/
  28.         unsigned long   flags;              /*See below under 'Entry Flags:'*/
  29.         unsigned char   protocol,         /*Preferred file transfer protocol*/
  30.                         parity,                                     /*Parity*/
  31.                         wordlen,                    /*# of data bits, 7 or 8*/
  32.                         stopbits,                   /*# of stop bits, 1 or 2*/
  33.                         emulation;                      /*Terminal emulation*/
  34.         unsigned int    keyset;      /*Key definition record, 0xFFFF=DEFAULT*/
  35.         unsigned int    profile;                 /*Profile record, 0=DEFAULT*/
  36.         char            script[9];       /*Script name to use, blank if none*/
  37.         }
  38.     PHONEREC;
  39.  
  40.     /* Phone record flags: */
  41.  
  42. #define XLAT_ON         0x00000001L                 /*Use translation tables*/
  43. #define DIALED          0x00000002L                     /*Queued for dialing*/
  44. #define LINEFEEDS       0x00000004L                /*On=CR->CR/LF Off=CR->CR*/
  45. #define NOWRAPLINES     0x00000008L          /*Don't wrap lines when xpos=80*/
  46. #define B_LOCALECHO     0x00000010L       /*Echo keyboard input to local CRT*/
  47. #define B_NOAVATAR      0x00000020L                    /*No AVATAR sequences*/
  48. #define B_NOIEMSI       0x00000040L                               /*No IEMSI*/
  49. #define DELETED         0x80000000L         /*Entry is deleted, never stored*/
  50.  
  51.     /* Profile entry record descriptor ------------------------------------ */
  52.     /* TERMPROF.FD (all strings are NUL terminated) */
  53.  
  54.     typedef struct
  55.         {
  56.         char            username[30];                            /*User name*/
  57.         char            handle[20];                                 /*Handle*/
  58.         char            password[20];                             /*Password*/
  59.         unsigned long   flags;            /*See below under 'Profile Flags:'*/
  60.         char            reserved[20];                           /* reserved */
  61.         }
  62.     PROFILE;
  63.  
  64.     /* Profile flags:*/
  65.  
  66. #define PRF_HOTKEYS     0x00000001L                                /*Hotkeys*/
  67. #define PRF_QUIET       0x00000002L                          /*Don't disturb*/
  68. #define PRF_MORE        0x00000004L                           /*Page pausing*/
  69. #define PRF_EDITOR      0x00000008L                 /*Use full-screen editor*/
  70. #define PRF_NEWS        0x00000010L             /*Show bulletins, news, etc.*/
  71. #define PRF_NEWMAIL     0x00000020L                     /*Check for new mail*/
  72. #define PRF_NEWFILE     0x00000040L                    /*Check for new files*/
  73. #define PRF_CLRSCR      0x00000080L                        /*Screen clearing*/
  74.  
  75.     /* Keyset entry record descriptor ------------------------------------- */
  76.     /* TERMKEYS.FD */
  77.  
  78.     /* Note that the char[] fields are in Pascal fashion. The first byte is
  79.     the length byte. The actual string starts at [1] and the string is NOT
  80.     NUL terminated. In Pascal they would be string[30].*/
  81.  
  82.     typedef struct
  83.         {
  84.         char    shiftkey[12][31];                             /*Shift F1-F12*/
  85.         char    ctrlkey[12][31];                               /*Ctrl F1-F12*/
  86.         }
  87.     KEYREC;
  88.  
  89. /* end of file "terminal.h" */
  90.